define([ "app", "jquery", "md5", "ecb","artDialog","iframeTools",  "services/UserService","services/TipsService",
		"directives/AudioPlayer",
		"directives/company/ReAuth",
		"resources/company/CompanyResource", 
		"resources/UserResource", "resources/ShareResource" ],
		function(app) {
			var deps = [ "$scope", "$state","$sce", "$timeout", "$window", "$location", "$stateParams","TipsService", "UserService", "UserResource", "ShareResource","CompanyResource" ];

			function controller($scope, $state,$sce,$timeout, $window, $location, $stateParams,TipsService, UserService, UserResource, ShareResource,CompanyResource) {
				
				init()
				
				function init(){
					CompanyResource.queryCompanyInfo().success(function(data){
		        		if(data.obj==null){
							return;
						}
		        		
						$scope.mapUrl = $sce.trustAsResourceUrl("/recruit/h5/company/map2.html?latitude="+data.obj.latitude+"&longitude="+data.obj.longitude); //URL 为全链接（$sce.trustAsResourceUrl("http://" + url)）

		        		$scope.mobile=data.obj.mobile;
		        		$scope.companyName=data.obj.companyName;
		        		$scope.companyDesc=data.obj.companyDesc;
		        		$scope.companyTelephone=data.obj.companyTelephone;
		        		$scope.yyzzUrl=data.obj.yyzzUrl;
		        		$scope.logoUrl=data.obj.logoUrl;
		        		$scope.lableList = data.obj.lableList;
		        		$scope.companyPicList=data.obj.companyPics
		            });
				}
				
				/**
				 * 显示大图
				 */
				$scope.showBigPic =function (picUrl){
					$state.go('home.showBigPic', {
						picUrl:picUrl
	                });
				}
				
				
				/**
				 * 重新认证
				 */
				$scope.reAuth =function (){
					$state.go('home.companyAuthentication');
				}
				
				/**
				 * 上传企业办公环境
				 */
				$scope.uploadCompanyPicture =function (){
					$state.go('home.uploadCompanyPicture');
				}
				
				
			}
			controller.$inject = deps;
			return app.lazy.controller("AccountManagementController", controller);
		});
